package com.afu.thread;

import java.util.concurrent.Callable;

/**
 * ClassName: ThreadDemo1
 * Package: com.afu.thread
 * Description:
 *              3、实现Callable接口
 *
 * @Author zxf
 * @Create 2024/2/26 16:14
 * @Version 1.0
 */
public class ThreadCallableDemo3 implements Callable {


    @Override
    public String call() throws Exception {
        System.out.println(Thread.currentThread().getName() +"在执行。。。   3、实现Callable接口");
        return Thread.currentThread().getName();
    }
}

